CPATH=../Creatures

Test: Test.cpp IBMController
	g++ -framework OpenGL -framework GLUT Test.cpp IBMController.o Quadtree.o Brain.o Virus.o Vec.o -o Test

IBMController: IBMController.cpp Quadtree
	g++ -c IBMController.cpp

Quadtree: Quadtree.cpp Brain
	g++ -c Quadtree.cpp

Brain: $(CPATH)/Creature/Brain.cpp Vec Virus
	g++ -c $(CPATH)/Creature/Brain.cpp

Virus: $(CPATH)/CreatureControl/Virus.cpp $(CPATH)/CreatureControl/Virus.h
	g++ -c $(CPATH)/CreatureControl/Virus.cpp

Vec: $(CPATH)/Vec.cpp $(CPATH)/Vec.h
	g++ -c $(CPATH)/Vec.cpp

clean:
	rm -f *.o